// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import store from '@/stores';
import router from './router'
import { sync } from 'vuex-router-sync'
import MuseUI from 'muse-ui'
import dyComponent from '@/components'

import 'muse-ui/dist/muse-ui.css';
import './assets/css/style.less'
import 'font-awesome/css/font-awesome.min.css'



Vue.config.productionTip = false;

Vue.use(dyComponent)
Vue.use(MuseUI)

// 路由和store同步
sync(store, router)




new Vue({
	el: '#app',
	router,
	store,
	components: { App },
	template: '<App/>',
	mounted(){
		document.addEventListener('deviceready', this.onDeviceReady, false);
	},
	methods: {
		onDeviceReady(){

		}
	}
})